package Month07.day03;

import java.util.Scanner;

public class array4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] ints = new int[5];
        int sum = 0;
        for (int i = 0; i < ints.length; i++) {
            System.out.println("输入你的第" + (i + 1) + "个数据");
            ints[i] = scanner.nextInt();
        }
        for (int i = 0; i < ints.length; i++) {
            sum += ints[i];
        }
        System.out.println(sum);
    }
}
